import  React from  'react'
import {connect} from "react-redux";
import {clearData, saveFormData} from "../../store/user/action";
class refChild extends React.Component {
    constructor(props) {
        super(props);
        console.log(this.props)
        console.log(this.props.ref)
    }
    focus(){
        console.log(this.fancyButtonRef)
        this.fancyButtonRef.current.focus();

    }

    render() {
        return (
            <div>
                <input ref={this.props.refs} />
            </div>
        );
    }
}
export default  connect(store => ({
    userData:store.userData
}),{saveFormData, clearData})(refChild);
// export default refChild;

